package cloudPayAdmin.admin.dbapp.entity.hicatcard.user;

import java.util.LinkedHashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import cloudPayAdmin.util.TimeUtil;
import cloudPayAdmin.util.annotation.StringDateFormat;

@Entity
@Table(name = "t_user_third")
public class TUserThird {
	
	public static final Integer TYPE_RENBAO = 1;
	public static final String TYPE_RENBAO_MSG = "人保";
	
	public static final String STATUS_NOT_USE = "1";
	public static final String STATUS_HAS_USE = "2";
	
	// 状态
	public static Map<String, String> initTypeMap() {
		Map<String, String> typeMap = new LinkedHashMap<String, String>();
		typeMap.put(String.valueOf(TYPE_RENBAO), TYPE_RENBAO_MSG);
		return typeMap;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "USER_THIRD_ID")
	private Long userThirdId;
	
	@Column(name = "TYPE")
	private Integer type;
	
	@Column(name = "ACCOUNT_ID")
	private String accountId;
	
	@Column(name = "OPENID")
	private String openId;
	
	@Column(name = "QR_PATH")
	private String qrPath;
	
	@Column(name = "STATUS")
	private String status;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "CREATE_TIME")
	private String createTime;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "UPDATE_TIME")
	private String updateTime;
	
	@Column(name = "ENABLE")
	private Boolean enable = Boolean.TRUE;
	
	@Column(name = "USER_ID")
	private Long userId;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "ACTIVE_TIME")
	private String avtiveTime;
	
	@Column(name = "BATCH")
	private Integer batch;
	
	public Integer getBatch() {
		return batch;
	}

	public void setBatch(Integer batch) {
		this.batch = batch;
	}
	public String getAvtiveTime() {
		return avtiveTime;
	}

	public void setAvtiveTime(String avtiveTime) {
		this.avtiveTime = avtiveTime;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserThirdId() {
		return userThirdId;
	}

	public void setUserThirdId(Long userThirdId) {
		this.userThirdId = userThirdId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getQrPath() {
		return qrPath;
	}

	public void setQrPath(String qrPath) {
		this.qrPath = qrPath;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
	
	
}
